package com.llmcu.graphic.designpatterns.interpreter;

public class Main {
    public static void main(String[] args) {
//        Context context = new Context("program  end");
//        Context context = new Context("program go end");
//        Context context = new Context("program go right go right go right go right end");
//        Context context = new Context("program repeat 4 go right end end");
        Context context = new Context("program repeat 4 repeat 3 go right go left end right end end");
        Node node = new ProgramNode();
        node.parse(context);
        System.out.println(node);
    }
}
